public class Test {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()->{
            System.out.print("a");
        });
        Thread t2 = new Thread(()->{
            System.out.print("b");
        });
        Thread t3 = new Thread(()->{
            System.out.print("c");
        });

        t3.start();t3.join();
        t2.start();t2.join();
        t1.start();t1.join();
    }
}
